package gameobject.construct;

import gameobject.item.Hammer;
import gameobject.item.RequiredItemHolder;
import gameobject.item.Wood;
import mygame.Vector3i;
import mygame.Voxel;
import shape.Wedge;

public class Ramp extends BaseRamp {
    
    public static Ramp createInstance() {
        return Ramp.createInstance(DEFAULT_BASE_VOXEL_LOCATION);
    }

    public static Ramp createInstance(Vector3i baseVoxelGridLocation) {
        Ramp instance = new Ramp();
        instance.init(baseVoxelGridLocation);
        return instance;
    }

    @Override
    protected void addModel() {
        addModelDefault(new Wedge(Voxel.VOXEL_EXTENT, Voxel.VOXEL_EXTENT, Voxel.VOXEL_EXTENT));
    }

    @Override
    protected void addStartingInventory() {}
    
    @Override
    protected void addRequiredToBuild() {
	requiredItemsToBuild.get(RequiredItemHolder.CHARACTER).add(new Hammer());
	requiredItemsToBuild.get(RequiredItemHolder.CONSTRUCT).add(new Wood(2));
    }

    @Override
    protected void addRequiredToHarvest() {
	requiredItemsToHarvest.get(RequiredItemHolder.CHARACTER).add(new Hammer());
    }
}
